package com.xypower.web.controller;

import com.xypower.pojo.Book;
import com.xypower.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 类名:
 * 作者:XY
 * 创建时间:2021/11/15-0:47
 * 功能:
 */
@RestController
public class BookController {
    @Autowired
    private BookService bookService;
    @RequestMapping("/getAll")
    public List<Book> getAll(){
        return bookService.getAll();
    }
}
